Latest Questions

ansible roles split tasks/main.yml in multiple files

I want to split my tasks/main.yml into different files in my Ansible role. With defaults/ and vars/, Ansible supports the creation of a main directory instead o

Unique comparable points at Java TreeSet

Having a very simple example of Java code: import java.util.*; class Point implements Comparable<Point>{ float x, y; Point(float x_, float y

Go to a precedent page in a php site

I'm creating a simple php program and I'm trying to find a way to be able to go from the page 2 back to the page 1 with a button. I tried by making a button in

Regex validation for a specific value with React Formik

First is, I want to validate the field that if the user type a character that is not existing in this (e.g.): /[ùûüÿ€’“&

How to see which commit was deployed to prod with AWS CodeDeploy

We're using AWS CodeDeploy for our deployment pipelines, reading from our bitbucket repository. I'm trying to find which commit number was last deployed to prod

QTimer format converting

I have this code: from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import Qt, QTimer import sys class Ui_Timer15(object): def setupUi(self, Ti

I can't do that loop function

Here is my project, it' s drawing robot: I manage to do F and R functions. But my L function always malfunctions. Here is my code: def func(list1): numOfElemen

How can I load Google Tag Manager to a next.js app, AFTER the app is fully loaded?

I'm building a next.js application and would like to load Google Tag Manager (GTM) only AFTER the entire page is loaded. The goal behind this is to improve the

Flutter 3.0.0 bugs

after upgrading to the latest version 3.0.0 then some various bugs appear in some of my projects that run well before qr_code_scanner:compileRelaseKotlin Dupl

Can I mock one function exported from a typescript module that uses ES6 import style

I have been struggling with some specific ES6 importing-style and using with Jest mocking in typescript. It's very specific, so I wrote this example puzzle to

Next.js Image always on top

I am using Tailwind CSS to style a Next.js website. I have an image element for which I am using Next.js Image element. Now I want to open a modal on top of the

roblox LUA Expected 'end' (to close 'than' at line 3), got '='

function teleportTo(placeCFrame) local plyr = game.Players.LocalPlayer; if plyr.Character then return plyr.Character.HumanoidRootPart.CFrame = p

Read and Modify the key value in XML using Bash/Shell script

I need to read (store in variable) and then change the online_hostname key value in XML using bash/shell script. <?xml version="1.0" encoding="UTF-8" ?> &

FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Core

I'm creating a .net core console application where some of the libraries are using SignalR. I have installed "Microsoft.AspNetCore.SignalR.Core" from nuget pack

How to check if user is logged in and redirect them to the right screen using Jetpack Navigation

what is the best way to save user logged in state, check if they logged in or not and redirect them to the right screen. I'm not using firebase Auth in this cur

Node/Twilio multiple config variables in require function

I was wondering if any other people have managed to find a way to use multiple account sids and auth tokens when using Twilio for Node. The documentation is pre

Build problem with React viteJS and was amplify

my question is quite simple to explain. I've initialized a React project with ViteJS and then added aws-amplify for the backend. I developed the project and eve

OidcClient.LoginAsync in Xamarin Android caching the login information

In Xamarin.Forms application, I am doing login through OidcClient, I am facing one issue with Android. After the first successful login, the user does not go th

protobuf doesn't see .proto files in gradle project

Protobuf plugin for gradle: id 'com.google.protobuf' version '0.8.13' Here is dependencies from build.gradle implementation "io.grpc:grpc-protobuf:${grpcVersio

How can I set the default branch name for all new projects on GitLab?

Note that I am not looking to change it for a specific repo. I want to change the default branch name per account, so any new created repository will have this

How to use a CNN code in python inside a website?

I have website with backend in Python (Django) and JavaScript hosted on heroku. Also, I have code in python that does image classification with EfficientNet, so

C#- http client response help request

I have the following code: static async Task checkIMEI( double IMEI) { var client = new HttpClient(); var request = new HttpRequest

Can I get the mouse position with a different format

I am trying to get the position of my mouse, but make it print just the coordinates like 1000, 1000 Not like Point(x=1212, y=621) My Code: x = pyautogui.posi

cloud build pass secret env to dockerfile

I am using google cloud build to build a docker image and deploy in cloud run. The module has dependencies on Github that are private. In the cloudbuild.yaml fi

Understanding continuation tokens in AWS S3

I'd like to understand better how continuation tokens work in list_objects_v2(). Here is a piece of code that iterates through a large S3 bucket, storing the co

SQL- How to combine 3 tables to get this result?

The SNO seems to be misdirecting So, I simplified the question even further --creation CREATE TABLE LAB (JOB_ID int, LAB_ID VARCHAR(50)); CREATE TABLE SPR (JOB_

Unable to connect internet/google.com from pod. Docker and k8 are able to pull images

I am trying to learn Kubernetes. Create a single-node Kubernetes Cluster on Oracle Cloud using these steps here cat /etc/resolv.conf >> nameserver 169.254

How to use dedicated GPU with TF2, given that multiple GPUs are available?

As title. I thought these lines would work to use only one GPU: _GPU = tf.config.list_physical_devices('GPU')[3] tf.config.experimental.set_memory_growth(_GPU,

What options do you have for the internal logger of a logger provider?

I have developed Logging.Raven: a net core logger provider that stores log entries in a RavenDB database. When something goes wrong I write the error informatio

Create multiple DataFrames using data from an api

I'm using the world bank API to analyze data and I want to create multiple data frames with the same indicators for different countries. import wbgapi as wb imp